from typing import Union

from business_processes.opening_account_validation.domain.entity.package import (
    Package,
)
from core.infra.database.repository import Repository


class PackageRepository(Repository):
    @staticmethod
    def get_package_by_uuid(
        session, package_uuid: str
    ) -> Union[Package, None]:
        return (
            session.query(Package).filter_by(package_uuid=package_uuid).first()
        )



